#include <stdio.h>
int main()
{
    int ans,b;
    char op;
    scanf("%d",&ans);
    while(scanf("%c",&op)!=EOF)
    {
        if(op=='=')goto ok;
        scanf("%d",&b);
        switch(op)
        {
            case '+':ans+=b;break;
            case '-':ans-=b;break;
            case '*':ans*=b;break;
            case '/':if(b==0)goto err;ans/=b;break;
            default :
err:;
                printf("ERROR\n");
                goto exit;
                
        }
        
    }
ok:;
    printf("%d\n",ans);
exit:;
}